package com.wzh.dao;


import com.wzh.pojo.Po.Title;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface Titledao  {



	@Delete("delete from title where id=#{id}")
	int deonebyid(Title title);

	@Insert("insert into title (subjectname,inserttime) value (#{subjectname},#{inserttime})")
	int addnew(Title title);

	@Select("select * from title ")
	List<Title> getAll();


}
